home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / idl / orbit-1.0 / LName.pidl < prev   
Text File  |  2005-10-20  |  1KB  |  41 lines

  1. // Names Library interface in PIDL, 
  2. // CORBAservices p 3- 14, Naming Service V1.0 3/94 
  3.  
  4. #include "name.h"
  5.  
  6. interface LNameComponent {  // PIDL
  7.         exception NotSet{};
  8.         string get_id() 
  9.                 raises(NotSet);
  10.         void set_id(in string i);
  11.         string get_kind() 
  12.                 raises(NotSet);
  13.         void set_kind(in string k);
  14.         void destroy();
  15. };
  16.  
  17. interface LName {  // PIDL
  18.         exception NoComponent{};
  19.         exception OverFlow{};
  20.         exception InvalidName{};                                
  21.         LName insert_component(in unsigned long i, 
  22.                                         in LNameComponent n) 
  23.                         raises(NoComponent, OverFlow);
  24.         LNameComponent get_component(in unsigned long i)
  25.                  raises(NoComponent);                           
  26.         LNameComponent delete_component(in unsigned long i)
  27.                  raises(NoComponent);                           
  28.         unsigned long num_components();
  29.         boolean equal(in LName ln);
  30.         boolean less_than(in LName ln);
  31.         CosNaming::Name to_idl_form()
  32.                         raises(InvalidName);                             
  33.         void from_idl_form(in CosNaming::Name n);
  34.         void destroy();
  35. };
  36.  
  37. // This is C/C++
  38. // LName create_lname(); 
  39. // LNameComponent create_lname_component();
  40.  
  41.